const { DataTypes } = require('sequelize')

const seq = require('../db/seq')

const Project = seq.define('project', {
    id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
    projectName: DataTypes.STRING,
    projectUrl: DataTypes.STRING,
    startTime: DataTypes.DATEONLY,
    estimate: DataTypes.INTEGER,
    endTime: DataTypes.DATEONLY,
    status: DataTypes.INTEGER,
    director: DataTypes.INTEGER,

}, {
    tableName: 'project'
})

module.exports = Project